\hypertarget{classgps}{\section{gps Class Reference}
\label{classgps}\index{gps@{gps}}
}


gps class  




{\ttfamily \#include $<$gps.\-h$>$}

\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structgps_1_1channel__s}{channel\-\_\-s}
\begin{DoxyCompactList}\small\item\em channel information \end{DoxyCompactList}\item 
struct \hyperlink{structgps_1_1date__s}{date\-\_\-s}
\begin{DoxyCompactList}\small\item\em date struct \end{DoxyCompactList}\item 
struct \hyperlink{structgps_1_1_gps_info__s}{Gps\-Info\-\_\-s}
\begin{DoxyCompactList}\small\item\em General gps info. \end{DoxyCompactList}\item 
struct \hyperlink{structgps_1_1_r_m_cstr}{R\-M\-Cstr}
\begin{DoxyCompactList}\small\item\em Struct to work with \$\-G\-P\-R\-M\-C string. \end{DoxyCompactList}\item 
struct \hyperlink{structgps_1_1time__s}{time\-\_\-s}
\begin{DoxyCompactList}\small\item\em time struct \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classgps_a13b491233eeef0a9934e8d86db776949}{gps} ()
\item 
float \hyperlink{classgps_a6f0aa175cb89310542170e72e0eaa74c}{Get\-Dist} (float Lat1, float Lon1, float Lat2, float Lon2)
\begin{DoxyCompactList}\small\item\em Get the distance between to coordinate. \end{DoxyCompactList}\item 
int \hyperlink{classgps_a0818935ee361cc80d45f5decf61b55eb}{Get\-Bearing} (float Lat1, float Lon1, float Lat2, float Lon2)
\begin{DoxyCompactList}\small\item\em Get the bearing between 2 coordinate. \end{DoxyCompactList}\item 
float \hyperlink{classgps_afeb31896befa19a3c0f6d8025eaa3db7}{degree\-To\-Radian} (float degree)
\begin{DoxyCompactList}\small\item\em convert degree to radian. \end{DoxyCompactList}\item 
float \hyperlink{classgps_afc9cc644ebe767cc38cd6be31ff11c1a}{radian\-To\-Degree} (float radian)
\begin{DoxyCompactList}\small\item\em Convert Radian to Degree. \end{DoxyCompactList}\item 
int \hyperlink{classgps_a88ace6e98d9b3ba264f78bf66f8eb0b5}{Process\-Nmea\-Str} (char $\ast$nmea, int Len)
\begin{DoxyCompactList}\small\item\em Process an N\-M\-E\-A string. \end{DoxyCompactList}\item 
void \hyperlink{classgps_a917af9e2f4feaf978fb1d8d641467849}{Process\-Nmea\-\_\-\-R\-M\-C} (char $\ast$nmea, int Len)
\begin{DoxyCompactList}\small\item\em Process \$\-G\-P\-R\-M\-C N\-M\-E\-A string. \end{DoxyCompactList}\item 
float \hyperlink{classgps_a06860b3e28085a326e192aa31b5a6236}{dmtodd} (char $\ast$dm, char N\-S\-E\-W, int Lat\-Or\-Lon)
\begin{DoxyCompactList}\small\item\em N\-M\-E\-A 'degree minute.\-m' to 'degree.\-decimal'. \end{DoxyCompactList}\item 
boolean \hyperlink{classgps_ac771c6be4eb9da5e9c996bba209ecfed}{nttots} (char $\ast$timestr, \hyperlink{structgps_1_1time__s}{time\-\_\-s} \&time\-Return)
\begin{DoxyCompactList}\small\item\em N\-M\-E\-A R\-M\-C time string to \hyperlink{structgps_1_1time__s}{time\-\_\-s} struct. \end{DoxyCompactList}\item 
void \hyperlink{classgps_a3e36f5a90e338203a540406a480a89ab}{gettimestr} (char $\ast$time)
\begin{DoxyCompactList}\small\item\em Format a time string in char $\ast$time. \end{DoxyCompactList}\item 
boolean \hyperlink{classgps_a2f7a4e38be09e9e4260c0d539db8fcc7}{ndtods} (char $\ast$datestr, int fromtype, \hyperlink{structgps_1_1date__s}{date\-\_\-s} \&date\-Return)
\begin{DoxyCompactList}\small\item\em N\-M\-E\-A R\-M\-C date string to \hyperlink{structgps_1_1date__s}{date\-\_\-s} struct. \end{DoxyCompactList}\item 
void \hyperlink{classgps_a03933dd318759e475934d53cf187d7e0}{getdatestr} (char $\ast$date)
\begin{DoxyCompactList}\small\item\em Format a date string in char $\ast$date. \end{DoxyCompactList}\item 
float \hyperlink{classgps_a0bf6b4d518da457b1fe0402c44925748}{ktstokmh} (float kts)
\begin{DoxyCompactList}\small\item\em Convert Knots to Kilometers per Hour. \end{DoxyCompactList}\item 
float \hyperlink{classgps_a5f1bdb341a466b9bf565b6ec36ecd625}{ktstomph} (float kts)
\begin{DoxyCompactList}\small\item\em Convert Knots to Miles Per Hour. \end{DoxyCompactList}\item 
void \hyperlink{classgps_ae4c4be1a399edf51f4d9c11f017791ea}{Process\-Nmea\-\_\-\-P\-M\-T\-K\-C\-H\-N} (char $\ast$nmea, int Len)
\begin{DoxyCompactList}\small\item\em Process \$\-P\-M\-T\-K\-C\-H\-N 'N\-M\-E\-A style' string. \end{DoxyCompactList}\item 
boolean \hyperlink{classgps_ac06c909571175bf7daa520d9f375ad84}{Check\-Nmea\-Checksum} (char $\ast$nmea, int Len)
\begin{DoxyCompactList}\small\item\em Check N\-M\-E\-A Checksum. \end{DoxyCompactList}\item 
int \hyperlink{classgps_a6d3483d4e413979a88bff31ec5a4eca4}{get\-Check\-Sum} (char $\ast$string)
\begin{DoxyCompactList}\small\item\em Get checksum. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{classgps_a7b0dca0379f5094698d5735b82bae36f}{valid}
\begin{DoxyCompactList}\small\item\em validity tag \end{DoxyCompactList}\item 
\hyperlink{structgps_1_1_gps_info__s}{Gps\-Info\-\_\-s} \hyperlink{classgps_ab9a5b2f24ebab720c5de80180c5132c8}{Gps\-Info}
\begin{DoxyCompactList}\small\item\em Global variable G\-P\-S Information. \end{DoxyCompactList}\item 
\hyperlink{structgps_1_1channel__s}{channel\-\_\-s} \hyperlink{classgps_abf96b08c94a86b854ac2f61e1c8137dc}{chan} \mbox{[}\hyperlink{gps__setup_8h_af98456070a63f454dbd60f56a7907616}{T\-O\-T\-A\-L\-\_\-\-C\-H\-A\-N\-N\-E\-L}\mbox{]}
\begin{DoxyCompactList}\small\item\em Global Channel Info. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
gps class 

The gps class is a collection of tool to deal with gps and navigation data. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classgps_a13b491233eeef0a9934e8d86db776949}{\index{gps@{gps}!gps@{gps}}
\index{gps@{gps}!gps@{gps}}
\subsubsection[{gps}]{\setlength{\rightskip}{0pt plus 5cm}gps\-::gps (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classgps_a13b491233eeef0a9934e8d86db776949}
Constructor that create an instance of \hyperlink{classgps_a13b491233eeef0a9934e8d86db776949}{gps()} 

\subsection{Member Function Documentation}
\hypertarget{classgps_ac06c909571175bf7daa520d9f375ad84}{\index{gps@{gps}!Check\-Nmea\-Checksum@{Check\-Nmea\-Checksum}}
\index{Check\-Nmea\-Checksum@{Check\-Nmea\-Checksum}!gps@{gps}}
\subsubsection[{Check\-Nmea\-Checksum}]{\setlength{\rightskip}{0pt plus 5cm}boolean gps\-::\-Check\-Nmea\-Checksum (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{nmea, }
\item[{int}]{Len}
\end{DoxyParamCaption}
)}}\label{classgps_ac06c909571175bf7daa520d9f375ad84}


Check N\-M\-E\-A Checksum. 

Confirm that the checksum on a given N\-M\-E\-A string is valid. This Function is only included if C\-H\-E\-C\-K\-S\-U\-M\-\_\-\-E\-N\-A\-B\-L\-E is defined in \hyperlink{gps__setup_8h}{gps\-\_\-setup.\-h} 
\begin{DoxyParams}{Parameters}
{\em nmea} & The N\-M\-E\-A string to confirm the checksum. \\
\hline
{\em Len} & The lenght of the N\-M\-E\-A string. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
boolean true = checksum valid, false = checksum failed. 
\end{DoxyReturn}
\hypertarget{classgps_afeb31896befa19a3c0f6d8025eaa3db7}{\index{gps@{gps}!degree\-To\-Radian@{degree\-To\-Radian}}
\index{degree\-To\-Radian@{degree\-To\-Radian}!gps@{gps}}
\subsubsection[{degree\-To\-Radian}]{\setlength{\rightskip}{0pt plus 5cm}float gps\-::degree\-To\-Radian (
\begin{DoxyParamCaption}
\item[{float}]{degree}
\end{DoxyParamCaption}
)}}\label{classgps_afeb31896befa19a3c0f6d8025eaa3db7}


convert degree to radian. 


\begin{DoxyParams}{Parameters}
{\em degree} & the degree to convert in radia. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
float radian 
\end{DoxyReturn}
\hypertarget{classgps_a06860b3e28085a326e192aa31b5a6236}{\index{gps@{gps}!dmtodd@{dmtodd}}
\index{dmtodd@{dmtodd}!gps@{gps}}
\subsubsection[{dmtodd}]{\setlength{\rightskip}{0pt plus 5cm}float gps\-::dmtodd (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{dm, }
\item[{char}]{N\-S\-E\-W, }
\item[{int}]{Lat\-Or\-Lon}
\end{DoxyParamCaption}
)}}\label{classgps_a06860b3e28085a326e192aa31b5a6236}


N\-M\-E\-A 'degree minute.\-m' to 'degree.\-decimal'. 

Used to convert an N\-M\-E\-A style 'degree minute.\-m' string to a float 'degree.\-decimal'. The expected string format is\-: -\/\-L\-A\-T\-I\-T\-U\-D\-E\-: ddmm.\-mm -\/\-L\-O\-N\-G\-I\-T\-U\-T\-E\-: dddmm.\-mm 
\begin{DoxyParams}{Parameters}
{\em dm} & string that contain the N\-M\-E\-A style 'degree minute.\-m' information. \\
\hline
{\em N\-S\-E\-W} & char the represent the cardinal direction of the dm string. Can be 'N' 'S' 'E' 'W'. \\
\hline
{\em Lat\-Or\-Lon} & Latitude or Longitude tag. Use the define T\-Y\-P\-E\-\_\-\-L\-A\-T or T\-Y\-P\-E\-\_\-\-L\-O\-N \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
float that represent the Degree.\-decimal 
\end{DoxyReturn}
\hypertarget{classgps_a0818935ee361cc80d45f5decf61b55eb}{\index{gps@{gps}!Get\-Bearing@{Get\-Bearing}}
\index{Get\-Bearing@{Get\-Bearing}!gps@{gps}}
\subsubsection[{Get\-Bearing}]{\setlength{\rightskip}{0pt plus 5cm}int gps\-::\-Get\-Bearing (
\begin{DoxyParamCaption}
\item[{float}]{Lat1, }
\item[{float}]{Lon1, }
\item[{float}]{Lat2, }
\item[{float}]{Lon2}
\end{DoxyParamCaption}
)}}\label{classgps_a0818935ee361cc80d45f5decf61b55eb}


Get the bearing between 2 coordinate. 

Get the bearing in Degree between 2 coordinate. The coordinate expected format is float Degree.\-Decimal. 
\begin{DoxyParams}{Parameters}
{\em Lat1} & Latitude of coordinate 1. \\
\hline
{\em Lon1} & Longitude of coordinate 1. \\
\hline
{\em Lat2} & Latitude of coordinate 2. \\
\hline
{\em Lon2} & Longitude of coordinate 2. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
float bearing in degree. 
\end{DoxyReturn}
\hypertarget{classgps_a6d3483d4e413979a88bff31ec5a4eca4}{\index{gps@{gps}!get\-Check\-Sum@{get\-Check\-Sum}}
\index{get\-Check\-Sum@{get\-Check\-Sum}!gps@{gps}}
\subsubsection[{get\-Check\-Sum}]{\setlength{\rightskip}{0pt plus 5cm}int gps\-::get\-Check\-Sum (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{string}
\end{DoxyParamCaption}
)}}\label{classgps_a6d3483d4e413979a88bff31ec5a4eca4}


Get checksum. 

Get the Checksum value for a given N\-M\-E\-A string. 
\begin{DoxyParams}{Parameters}
{\em string} & The N\-M\-E\-A string to generate a Checksum from. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
int Checksum 
\end{DoxyReturn}
\hypertarget{classgps_a03933dd318759e475934d53cf187d7e0}{\index{gps@{gps}!getdatestr@{getdatestr}}
\index{getdatestr@{getdatestr}!gps@{gps}}
\subsubsection[{getdatestr}]{\setlength{\rightskip}{0pt plus 5cm}void gps\-::getdatestr (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{date}
\end{DoxyParamCaption}
)}}\label{classgps_a03933dd318759e475934d53cf187d7e0}


Format a date string in char $\ast$date. 

This function will format a string that contain the date in char $\ast$date. Based on what N\-M\-E\-A message are enabled, the string will be Y\-Y-\/\-M\-M-\/\-D\-D or Y\-Y\-Y\-Y-\/\-M\-M-\/\-D\-D. 
\begin{DoxyParams}{Parameters}
{\em date} & char array in wich the date will be formated. \\
\hline
\end{DoxyParams}
\hypertarget{classgps_a6f0aa175cb89310542170e72e0eaa74c}{\index{gps@{gps}!Get\-Dist@{Get\-Dist}}
\index{Get\-Dist@{Get\-Dist}!gps@{gps}}
\subsubsection[{Get\-Dist}]{\setlength{\rightskip}{0pt plus 5cm}float gps\-::\-Get\-Dist (
\begin{DoxyParamCaption}
\item[{float}]{Lat1, }
\item[{float}]{Lon1, }
\item[{float}]{Lat2, }
\item[{float}]{Lon2}
\end{DoxyParamCaption}
)}}\label{classgps_a6f0aa175cb89310542170e72e0eaa74c}


Get the distance between to coordinate. 

Get the distance in K\-M between 2 coordinate. The coordinate expected format is float Degree.\-Decimal. 
\begin{DoxyParams}{Parameters}
{\em Lat1} & Latitude of coordinate 1. \\
\hline
{\em Lon1} & Longitude of coordinate 1. \\
\hline
{\em Lat2} & Latitude of coordinate 2. \\
\hline
{\em Lon2} & Longitude of coordinate 2. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
float Distance in Kilometters. 
\end{DoxyReturn}
\hypertarget{classgps_a3e36f5a90e338203a540406a480a89ab}{\index{gps@{gps}!gettimestr@{gettimestr}}
\index{gettimestr@{gettimestr}!gps@{gps}}
\subsubsection[{gettimestr}]{\setlength{\rightskip}{0pt plus 5cm}void gps\-::gettimestr (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{time}
\end{DoxyParamCaption}
)}}\label{classgps_a3e36f5a90e338203a540406a480a89ab}


Format a time string in char $\ast$time. 

This function will format a string that contain the time in char $\ast$time. The string format will be H\-H\-:\-M\-M\-:S\-S.\-sss. 
\begin{DoxyParams}{Parameters}
{\em time} & char array in wich the time will be formated. \\
\hline
\end{DoxyParams}
\hypertarget{classgps_a0bf6b4d518da457b1fe0402c44925748}{\index{gps@{gps}!ktstokmh@{ktstokmh}}
\index{ktstokmh@{ktstokmh}!gps@{gps}}
\subsubsection[{ktstokmh}]{\setlength{\rightskip}{0pt plus 5cm}float gps\-::ktstokmh (
\begin{DoxyParamCaption}
\item[{float}]{kts}
\end{DoxyParamCaption}
)}}\label{classgps_a0bf6b4d518da457b1fe0402c44925748}


Convert Knots to Kilometers per Hour. 


\begin{DoxyParams}{Parameters}
{\em kts} & the Knots to convert in K\-M/\-H \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
float K\-M/\-H 
\end{DoxyReturn}
\hypertarget{classgps_a5f1bdb341a466b9bf565b6ec36ecd625}{\index{gps@{gps}!ktstomph@{ktstomph}}
\index{ktstomph@{ktstomph}!gps@{gps}}
\subsubsection[{ktstomph}]{\setlength{\rightskip}{0pt plus 5cm}float gps\-::ktstomph (
\begin{DoxyParamCaption}
\item[{float}]{kts}
\end{DoxyParamCaption}
)}}\label{classgps_a5f1bdb341a466b9bf565b6ec36ecd625}


Convert Knots to Miles Per Hour. 


\begin{DoxyParams}{Parameters}
{\em kts} & The Knots to convert to M\-P\-H \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
float M\-P\-H 
\end{DoxyReturn}
\hypertarget{classgps_a2f7a4e38be09e9e4260c0d539db8fcc7}{\index{gps@{gps}!ndtods@{ndtods}}
\index{ndtods@{ndtods}!gps@{gps}}
\subsubsection[{ndtods}]{\setlength{\rightskip}{0pt plus 5cm}boolean gps\-::ndtods (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{datestr, }
\item[{int}]{fromtype, }
\item[{{\bf date\-\_\-s} \&}]{date\-Return}
\end{DoxyParamCaption}
)}}\label{classgps_a2f7a4e38be09e9e4260c0d539db8fcc7}


N\-M\-E\-A R\-M\-C date string to \hyperlink{structgps_1_1date__s}{date\-\_\-s} struct. 

Used internaly, this function is used to set the date from an N\-M\-E\-A string in the \hyperlink{structgps_1_1date__s}{date\-\_\-s} struct date\-Return. 
\begin{DoxyParams}{Parameters}
{\em datestr} & N\-M\-E\-A date string. \\
\hline
{\em fromtype} & The type of N\-M\-E\-A date string (N\-M\-E\-A\-\_\-\-R\-M\-C, N\-M\-E\-A\-\_\-\-Z\-D\-A, ...) \\
\hline
{\em date\-Return} & The \hyperlink{structgps_1_1date__s}{date\-\_\-s} struct to store the date in. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true = valid convertion, false = error in convertion. 
\end{DoxyReturn}
\hypertarget{classgps_ac771c6be4eb9da5e9c996bba209ecfed}{\index{gps@{gps}!nttots@{nttots}}
\index{nttots@{nttots}!gps@{gps}}
\subsubsection[{nttots}]{\setlength{\rightskip}{0pt plus 5cm}boolean gps\-::nttots (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{timestr, }
\item[{{\bf time\-\_\-s} \&}]{time\-Return}
\end{DoxyParamCaption}
)}}\label{classgps_ac771c6be4eb9da5e9c996bba209ecfed}


N\-M\-E\-A R\-M\-C time string to \hyperlink{structgps_1_1time__s}{time\-\_\-s} struct. 

Used internaly, this function is used to set the time in time\-Return \hyperlink{structgps_1_1time__s}{time\-\_\-s} struct from an N\-M\-E\-A R\-M\-C time string. 
\begin{DoxyParams}{Parameters}
{\em timestr} & N\-M\-E\-A R\-M\-C time string. \\
\hline
{\em time\-Return} & Then \hyperlink{structgps_1_1time__s}{time\-\_\-s} struct to set the time in. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
bool true on convertion sucess, false on error. 
\end{DoxyReturn}
\hypertarget{classgps_ae4c4be1a399edf51f4d9c11f017791ea}{\index{gps@{gps}!Process\-Nmea\-\_\-\-P\-M\-T\-K\-C\-H\-N@{Process\-Nmea\-\_\-\-P\-M\-T\-K\-C\-H\-N}}
\index{Process\-Nmea\-\_\-\-P\-M\-T\-K\-C\-H\-N@{Process\-Nmea\-\_\-\-P\-M\-T\-K\-C\-H\-N}!gps@{gps}}
\subsubsection[{Process\-Nmea\-\_\-\-P\-M\-T\-K\-C\-H\-N}]{\setlength{\rightskip}{0pt plus 5cm}void gps\-::\-Process\-Nmea\-\_\-\-P\-M\-T\-K\-C\-H\-N (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{nmea, }
\item[{int}]{Len}
\end{DoxyParamCaption}
)}}\label{classgps_ae4c4be1a399edf51f4d9c11f017791ea}


Process \$\-P\-M\-T\-K\-C\-H\-N 'N\-M\-E\-A style' string. 

Used internaly by Process\-Nmea\-Str, this function process the M\-T\-K \$\-P\-M\-T\-K\-C\-H\-N message. P\-M\-T\-K\-C\-H\-N\-\_\-\-E\-N\-A\-B\-L\-E must be defined in \hyperlink{gps__setup_8h}{gps\-\_\-setup.\-h} for this function to be included. 
\begin{DoxyParams}{Parameters}
{\em nmea} & char array that contain de N\-M\-E\-A string \\
\hline
{\em Len} & int that represent the lenght of the N\-M\-E\-A string. \\
\hline
\end{DoxyParams}
\hypertarget{classgps_a917af9e2f4feaf978fb1d8d641467849}{\index{gps@{gps}!Process\-Nmea\-\_\-\-R\-M\-C@{Process\-Nmea\-\_\-\-R\-M\-C}}
\index{Process\-Nmea\-\_\-\-R\-M\-C@{Process\-Nmea\-\_\-\-R\-M\-C}!gps@{gps}}
\subsubsection[{Process\-Nmea\-\_\-\-R\-M\-C}]{\setlength{\rightskip}{0pt plus 5cm}void gps\-::\-Process\-Nmea\-\_\-\-R\-M\-C (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{nmea, }
\item[{int}]{Len}
\end{DoxyParamCaption}
)}}\label{classgps_a917af9e2f4feaf978fb1d8d641467849}


Process \$\-G\-P\-R\-M\-C N\-M\-E\-A string. 

Used internaly by Process\-Nmea\-Str, this function process the N\-M\-E\-A \$\-G\-P\-R\-M\-C message. This function is always included and cannot be turned off in \hyperlink{gps__setup_8h}{gps\-\_\-setup.\-h} 
\begin{DoxyParams}{Parameters}
{\em nmea} & char array that contain de N\-M\-E\-A string \\
\hline
{\em Len} & int that represent the lenght of the N\-M\-E\-A string. \\
\hline
\end{DoxyParams}
\hypertarget{classgps_a88ace6e98d9b3ba264f78bf66f8eb0b5}{\index{gps@{gps}!Process\-Nmea\-Str@{Process\-Nmea\-Str}}
\index{Process\-Nmea\-Str@{Process\-Nmea\-Str}!gps@{gps}}
\subsubsection[{Process\-Nmea\-Str}]{\setlength{\rightskip}{0pt plus 5cm}int gps\-::\-Process\-Nmea\-Str (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{nmea, }
\item[{int}]{Len}
\end{DoxyParamCaption}
)}}\label{classgps_a88ace6e98d9b3ba264f78bf66f8eb0b5}


Process an N\-M\-E\-A string. 

Process an N\-M\-E\-A string. The function expect a correctly formated N\-M\-E\-A string. 
\begin{DoxyParams}{Parameters}
{\em nmea} & char array that contain de N\-M\-E\-A string \\
\hline
{\em Len} & int that represent the lenght of the N\-M\-E\-A string. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
int $<$0 on error, $>$0 on success. 
\end{DoxyReturn}
\hypertarget{classgps_afc9cc644ebe767cc38cd6be31ff11c1a}{\index{gps@{gps}!radian\-To\-Degree@{radian\-To\-Degree}}
\index{radian\-To\-Degree@{radian\-To\-Degree}!gps@{gps}}
\subsubsection[{radian\-To\-Degree}]{\setlength{\rightskip}{0pt plus 5cm}float gps\-::radian\-To\-Degree (
\begin{DoxyParamCaption}
\item[{float}]{radian}
\end{DoxyParamCaption}
)}}\label{classgps_afc9cc644ebe767cc38cd6be31ff11c1a}


Convert Radian to Degree. 


\begin{DoxyParams}{Parameters}
{\em radian} & The radian to convert in degree. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
float degree. 
\end{DoxyReturn}


\subsection{Member Data Documentation}
\hypertarget{classgps_abf96b08c94a86b854ac2f61e1c8137dc}{\index{gps@{gps}!chan@{chan}}
\index{chan@{chan}!gps@{gps}}
\subsubsection[{chan}]{\setlength{\rightskip}{0pt plus 5cm}gps\-::chan}}\label{classgps_abf96b08c94a86b854ac2f61e1c8137dc}


Global Channel Info. 

This Global variable is used to store the channel information extracted from the N\-M\-E\-A style M\-T\-K device \$\-P\-M\-T\-K\-C\-H\-N string. By default the size of the array is 66. The array size can be overrided in \hyperlink{gps__setup_8h}{gps\-\_\-setup.\-h} using the T\-O\-T\-A\-L\-\_\-\-C\-H\-A\-N\-N\-E\-L define. \hypertarget{classgps_ab9a5b2f24ebab720c5de80180c5132c8}{\index{gps@{gps}!Gps\-Info@{Gps\-Info}}
\index{Gps\-Info@{Gps\-Info}!gps@{gps}}
\subsubsection[{Gps\-Info}]{\setlength{\rightskip}{0pt plus 5cm}gps\-::\-Gps\-Info}}\label{classgps_ab9a5b2f24ebab720c5de80180c5132c8}


Global variable G\-P\-S Information. 

This Global variable of type \hyperlink{structgps_1_1_gps_info__s}{Gps\-Info\-\_\-s} is used to store the processed G\-P\-S information. \hypertarget{classgps_a7b0dca0379f5094698d5735b82bae36f}{\index{gps@{gps}!valid@{valid}}
\index{valid@{valid}!gps@{gps}}
\subsubsection[{valid}]{\setlength{\rightskip}{0pt plus 5cm}gps\-::valid}}\label{classgps_a7b0dca0379f5094698d5735b82bae36f}


validity tag 

This vriable indicate if the gps data are Active or Void. use the define V\-A\-L\-I\-D\-\_\-\-A\-C\-T\-I\-V\-E and V\-A\-L\-I\-D\-\_\-\-V\-O\-I\-D to check the validity. 

The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
E\-:/\-C\-O\-D\-I\-N\-G/arduino-\/1.\-0/libraries/gps/\hyperlink{gps_8h}{gps.\-h}\item 
E\-:/\-C\-O\-D\-I\-N\-G/arduino-\/1.\-0/libraries/gps/\hyperlink{gps_8cpp}{gps.\-cpp}\end{DoxyCompactItemize}
